package com.zuiacsn;

public class StringUtil {
    public static void printNumber(String name){
        if (name == null) {
            return;
        }
        System.out.println("名字的长度是"+name.length());
    }

    public static int getMaxIndex(String data){
        if(data == null){
            return -1;
        }
        return data.length() - 1;
    }
}
